﻿using BLL;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using webMvc.App_Start.WebQueue;

namespace webMvc
{
	public class MvcApplication : System.Web.HttpApplication
	{
		protected void Application_Start()
		{
			//IdonatorsService bll = new donatorsService();
			//IWindsorContainer container = new WindsorContainer();
			//container.Register(
			//	Component.For<IdonatorsService>() //接口  
			//	.ImplementedBy<donatorsService>() //实现类  
			//);

			AreaRegistration.RegisterAllAreas();
			FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
			RouteConfig.RegisterRoutes(RouteTable.Routes);
			BundleConfig.RegisterBundles(BundleTable.Bundles);
			AddProductHandle.GetAddProductHandle().startHandle();
		}
	}
}
